Skip to main content
Version: 2.0.0

Configuration

All configuration is injected via the SPRING_APPLICATION_JSON environment variable in the deployment manifest.


Minimal Required Configuration

{
"spring.profiles.active": "vcapDB",
"app.platform": "SAP",
"auth.server.url": "https://<tenant>.authentication.<region>.hana.ondemand.com",
"ITM_SERVICE_URL": "https://<itm-app-url>",
"db.type": "hana",
"dbInstanceType": "hana",
"userPrincipalKey": "email",
"application-id": 1784
}

Configuration by Profile

Profile: vcapDB

The database is auto-configured from VCAP_SERVICES environment variable.

Steps

  1. Bind a SAP HANA service instance to the app
  2. Set spring.profiles.active=vcapDB
  3. CloudDatabaseConfig parses VCAP_SERVICES

Profile: configDB

Database properties are read from Spring Cloud Config Server or local properties.

Steps

  1. Set spring.profiles.active=configDB
  2. Configure config server URL
  3. Set spring.application.name=native-workflow-latest
spring.datasource.url=jdbc:sap://<host>:443?encrypt=true&validateCertificate=false
spring.datasource.username=<user>
spring.datasource.password=<password>
spring.datasource.driver-class-name=com.sap.db.jdbc.Driver

Auth Server Configuration

PlatformProperty Values
SAP XSUAAapp.platform=SAP
Keycloakapp.platform=WORK_ACCESS

Service-to-Service Token

{
"sap.token.clientid": "<client_id>",
"sap.token.clientsecret": "<client_secret>",
"sap.token.url": "https://<tenant>.authentication.<region>.hana.ondemand.com/oauth/token"
}

Full Production Example

{
"logging.level.root": "INFO",
"spring.profiles.active": "vcapDB",
"app.platform": "SAP",
"application-id": 1784,
"db.type": "hana",
"ITM_SERVICE_URL": "https://cw-caf-iwm-sbx-dev.cfapps.eu10-004.hana.ondemand.com",
"dbInstanceType": "hana",
"userPrincipalKey": "email",
"auth.server.url": "https://incture-cherrywork-dev.authentication.eu10.hana.ondemand.com"
}